//
//  QHomeOrderTableViewCell.m
//  QMCXDriver
//
//  Created by Massimo on 2017/4/13.
//  Copyright © 2017年 Massimo. All rights reserved.
//

#import "QHomeOrderTableViewCell.h"

@interface QHomeOrderTableViewCell()
@property (nonatomic, copy)QHomeOrderReject rejectBlock;
@property (nonatomic, copy)QHomeOrderAccept acceptBlock;
@property (nonatomic, weak)IBOutlet UIView *content;
@end


@implementation QHomeOrderTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.content.layer.cornerRadius = 4;
    self.content.layer.masksToBounds = YES;
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



- (IBAction)reject:(id)sender{
    if (self.rejectBlock) {
        self.rejectBlock();
    }
}

- (IBAction)accept:(id)sender{
    if (self.acceptBlock) {
        self.acceptBlock();
    }
}
- (void)setAcceptCallBack:(QHomeOrderAccept)accept{
    self.acceptBlock = accept;
}

- (void)setRejectCallBack:(QHomeOrderReject)reject{
    self.rejectBlock = reject;
}

@end
